<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition>

    <p:dialog header="Eviar SMS" widgetVar="create_sms_send" resizable="false" showEffect="clip" hideEffect="clip"  position="top" width="440" >
        <h:panelGrid id="panel_create_sms_send" columns="1" style="margin-bottom:10px">

            <h:panelGrid columns="1">
                <h:column>
                    <h:outputLabel value="Client:" />
                    <h:selectOneMenu value="#{smsDashboardMBean.clientPhoneSelected}">
                        <f:selectItems value="#{smsDashboardMBean.menuClientPhone}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="Telefone:" />
                    <h:inputText value="#{smsDashboardMBean.phone}" size="12" maxlength="12"/>
                </h:column>
            </h:panelGrid>

            <h:inputTextarea value="#{smsDashboardMBean.createSmsSend.message}" cols="60" rows="3" />
            <h:panelGrid columns="2">
                <h:selectBooleanCheckbox value="#{smsDashboardMBean.sendTip}"/>
                <h:outputLabel value="Desejo enviar a minha dica de resposta?" />
            </h:panelGrid>

        </h:panelGrid>
        <br/>
        <p:commandButton value="Confirmar" update="growl, pnlSmsSend" actionListener="#{smsDashboardMBean.sendSMS}" oncomplete="create_sms_send.hide();"/>
        <p:commandButton value="Cancelar" oncomplete="create_sms_send.hide();"/>
    </p:dialog>
    
    
    <p:dialog header="Importar" widgetVar="import_sms_send" resizable="false" showEffect="clip" hideEffect="clip"  position="top" width="440" >
        <h:panelGrid id="panel_import_sms_send" columns="1" style="margin-bottom:10px">

            

        </h:panelGrid>
        <br/>
        <p:commandButton value="Confirmar" update="growl, pnlSmsSend" actionListener="#{smsDashboardMBean.importSms}" oncomplete="create_sms_send.hide();"/>
        <p:commandButton value="Cancelar" oncomplete="create_sms_send.hide();"/>
    </p:dialog>
    
</ui:composition>
</html>